﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<link rel="Stylesheet" type="text/css" media="screen" href="Screen.css" />
  <title>STP_GetPortCount</title>
</head>
<body>
	<h3>STP_GetPortCount</h3>
	<hr />
<pre>
unsigned int STP_GetPortCount (BRIDGE* bridge);
</pre>
	<h4>
		Summary</h4>
	<p>
		Returns the number of ports on the bridge. This is the value passed to
		<a href="STP_CreateBridge.html">STP_CreateBridge</a>.</p>
	<h4>
		Parameters</h4>
	<dl>
		<dt>bridge</dt>
		<dd>Pointer to a BRIDGE object.</dd>
	</dl>
	<h4>
		Return value</h4>
		<dl>
		<dd>The port count.</dd>
		</dl>
	<h4>
		Remarks
	</h4>
	<p>It is allowed to call this function from within an <a href="STP_CALLBACKS.html">STP callback</a>.</p>
	</body>
</html>
